<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>编辑公告</title>
  	<script type="text/javascript" src="<%=basePath%>js/jquery-1.3.1.js"></script>
  	<script type="text/javascript" src="<%=basePath%>js/jquery.validate.js"></script>
	<script type="text/javascript" charset="UTF-8" src="<%=basePath%>js/messages_cn.js"></script>
	<script type="text/javascript">
			$(function() {
				$("#updateNoticeForm").validate({
					rules:{
						"notice.title":{
							required:true
						},
						"notice.content":{
							required:true
						}
					}
				}) ;
			});
		</script>
  </head>
  
  <body topmargin="0" bgcolor="#D6DFF7" >
  <form action="NoticeInfo!updateNoticeInfo" method="post" id="updateNoticeForm">
  <table height="300" width="100%" border="0" align="center" class="" bgcolor="#DEE5FA">
  <tr  >
			<td >&nbsp;</td>
		 </tr>
		<tr bgcolor="#799AE1" height="50" >
			<td colspan="2" align="center" style="font-size: 16px">
					<font color="#874B46" size="4pt">公告信息编辑</font>
			</td>
		</tr>
  <tr>
    <td height="50" width="30%" align="right"  >
             <font color="#874B46" size="4pt">公告标题：</font>
    </td>
    <td>
      <input name="notice.title" type="text" size="40" style="width:200px; height:26px;" value="<s:property value="notice.title" />" />
    </td>
  </tr>
  <tr>
    <td height="50" width="30%" align="right">
         <font color="#874B46" size="4pt"> 公告内容：</font>
    </td>
    <td>
      <textarea name="notice.content" cols="60" rows="10"><s:property value="notice.content" /></textarea>
    </td>
  </tr>
  <tr>
    <td height="50" width="30%" align="right">&nbsp;</td>
    <td>
    <input type="submit" name="update" style="width: 60" value="更新" /> 
             &nbsp;&nbsp;&nbsp;
             <input type="reset" name="reset" style="width: 60" value="重置" />  
    </td>
  </tr>
</table>
</form>
  </body>
</html>
